(function(){
	angular.module('app')
		.factory('ShowQuestionByIdFactory',fn);
	function fn(urlCnst) {
		var self = {};
		self.getEssayById = function (essayId, cb) {
			urlCnst.get("admin-essay/essay/"+essayId,cb);
        }
        self.postAnswer = function (essayId, body, cb) {
            urlCnst.post("admin-essay/essay/"+essayId+"/answer",body,cb);
        };
	    return self;
    }
})();
